@import '../../../style/var.scss';

.order-detail {
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 1;
  background-color: #F7F7F7;
}

.user-wrapper {
  position: relative;
  // padding: 30px 23px 38px 72px;
  padding: 0px 6px 0px 0px;
  margin: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 702px;
  height: 178px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 1);

  .user-info {
    display: flex;
    margin-bottom: 20px;
    margin-left: 72px;

    .username,
    .tel {
      white-space: nowrap;
      font-size: 30px;
      font-weight: bold;
      color: rgba(0, 0, 0, 1);
    }

    .username {
      margin-right: 40px;
      max-width: 300px;
      @include oneRowOmit;
    }
  }

  .address-info {
    // width: 100%;
    max-width: 516px;
    font-size: 26px;
    height: 52px;
    font-weight: bold;
    color: rgba(176, 176, 176, 1);
    margin-left: 72px;
    @include doubleRowOmit;
  }

  .line {
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 7px;
  }

  .left {
    position: absolute;
    top: 50%;
    left: 21px;
    transform: translateY(-50%);
    width: 31px;
    height: 36px;
  }

  .right {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 13px;
    height: 23px;
  }
}

.goods-wrapper {
  padding: 28px 26px;
  margin: 0 auto 20px;
  width: 702px;
  // height: 364px;
  background-color: #fff;

  .goods-branch {
    margin-bottom: 19px;
    display: flex;

    .icon {
      margin-right: 10px;
      width: 32px;
      height: 30px;
    }

    .branch-name {
      font-size: 30px;
      font-weight: bold;
      color: rgba(5, 14, 37, 1);
    }
  }

  .goods-detail {
    margin-bottom: 22px;
    padding: 24px 0;
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;

    .goods-image {
      margin-right: 17px;
      width: 166px;
      height: 166px;
    }

    .goods-info {
      flex: 1;
      height: 166px;
      line-height: 1;

      .goods-name {
        margin: 6px 0 17px;
        width: 100%;
        font-size: 30px;
        font-weight: bold;
        color: rgba(51, 51, 51, 1);
        @include oneRowOmit;
      }

      .goods-desc {
        margin-bottom: 50px;
        width: 100%;

        .item {
          line-height: 30px;
          font-size: 26px;
          font-weight: 300;
          color: rgba(176, 176, 176, 1);
          @include oneRowOmit;
        }
      }

      .goods-specification {
        display: flex;
        justify-content: flex-end;
        width: 100%;

        .goods-price {
          font-size: 30px;
          font-weight: bold;
          color: rgba(46, 46, 46, 1);
        }
      }
    }
  }

  .should-pay {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .text {
      font-size: 28px;
      font-weight: bold;
      color: rgba(5, 14, 37, 1);
    }

    .number-opt {
      display: flex;
      justify-content: space-around;
      align-items: center;
      width: 142px;
      height: 50px;
      border: 2px solid rgba(153, 153, 153, 1);
      border-radius: 2px;

      View {
        font-size: 26px;
        color: rgba(38, 38, 38, 1);
      }

      .add,
      .min {
        padding: 0 10px;
        font-size: 40px;
      }
    }
  }
}

.order-info {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 0 24px;
  margin: 0 auto;
  width: 702px;
  height: auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 1);

  .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    &:nth-child(2n) {
      border-top: solid 1px #f0f0f0;
      border-bottom: solid 1px #f0f0f0;
    }

    View {
      font-size: 28px;
      font-family: PingFang-SC-Regular;
      font-weight: bold;
      color: rgba(5, 14, 37, 1);
    }
  }

  // .middle-line {
  //   position: absolute;
  //   top: 50%;
  //   left: 50%;
  //   transform: translate(-50%, -50%);
  //   width: 658px;
  //   height: 1px;
  //   background-color: #F0F0F0;
  // }
}

.order-opt {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 0 46px;
  width: 750px;
  height: 130px;
  background: rgba(255, 255, 255, 1);

  .price {
    font-size: 30px;
    font-family: PingFang-SC-Regular;
    font-weight: bold;
    color: rgba(46, 46, 46, 1);
  }

  .opt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 228px;
    height: 90px;
    font-size: 30px;
    border: 1px solid rgba(38, 38, 38, 1);
    color: rgba(38, 38, 38, 1);
  }

  .to-pay {
    border: none;
    background-color: #F8A120;
    color: #FFFFFF;
  }
}

.cancle-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 800px;
  width: 100%;
  z-index: 11;
  background-color: #FBFBFB;

  .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    width: 100%;
    height: 90px;

    .left,
    .right {
      font-size: 34px;
      font-weight: bold;
      color: rgba(38, 38, 38, 1);
    }
  }

  .tips {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    padding-left: 27px;
    font-size: 24px;
    color: rgba(176, 176, 176, 1);
    background-color: #F5F5F5;
  }

  .cancle-reason-list {
    position: relative;
    padding: 32px 22px;
    width: 100%;
    height: 650px;
    overflow: auto;

    .item {
      display: flex;
      align-items: center;
      margin-bottom: 64px;

      .circle {
        position: relative;
        margin-right: 21px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 2px solid rgba(153, 153, 153, 1);
        background-color: #fff;

        &.active {
          &::after {
            content: '√';
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 20px;
            border: none;
            border-radius: 50%;
            background-color: #000;
            color: #fff;
          }
        }
      }

      .reason {
        font-size: 28px;
        color: rgba(38, 38, 38, 1);
      }
    }
  }
}

.address-name{
  font-size: 30px;
  color: #F8A120;
  margin-top: 3px;
  margin-bottom: 12px;
  padding-left: 12px;
  
}
